#include"app_mqtt.h"
#include"stdio.h"
#include <unistd.h>
static int test_mqtt_callback_handler(char *payload){
    printf("receive web_to_gateway -->  payload:%s\n",payload);
    return 0;
}
int main(void)
{ 
    app_mqtt_init(); 
    app_mqtt_register_recv_callback(test_mqtt_callback_handler);
    app_mqtt_publish("gateway publish: hello world");

    sleep(20);
    app_mqtt_destroy();

    return 0;
}

